package com.cskaoyan.bean.issue.vo;

import com.cskaoyan.bean.issue.Issue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 创建日期: 2022/05/06 21:21
 *
 * @author JinLu Zhou
 */
@Data
public class IssueVo {
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date addTime;
    String answer;
    Boolean deleted;
    Integer id;
    String question;
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date updateTime;

    public void set(Issue issue){
        setAddTime(issue.getAddTime());
        setAnswer(issue.getAnswer());
        setDeleted(issue.getDeleted());
        setId(issue.getId());
        setQuestion(issue.getQuestion());
        setUpdateTime(issue.getUpdateTime());
    }
}
